package com.codeworker.validationdemo.bean;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Description: 封装请求类型
 *
 * @author code-worker
 * @date 2021/09/25 10:29
 */
@Data
public class ReqBody<T> implements Serializable {
    @Valid
    @NotNull(message = "请求体不能为空")
    private T inData;
}
